from rest_framework.response import Response

def api_response(code=200, message="success", data=None):
    return Response({
        "code": code,
        "message": message,
        "data": data
    }) 